package com.shoulder.boot.common.log;

import com.shoulder.boot.system.mapper.LogMapper;
import com.shoulder.log.Log;
import com.shoulder.log.printer.LogPrinter;

public class DBlogPrinter implements LogPrinter {

    private final LogMapper logMapper;
    public DBlogPrinter(LogMapper logMapper) {
        this.logMapper = logMapper;
    }

    @Override
    public void print(Log log) {
        logMapper.insert(log);
    }
}
